import "@/assets/iconfont";

function IconFont({ icon, className, ...other }) {
  return (
    <svg
      className={`icon ${className}`}
      width={"1.5rem"}
      height={"1.5rem"}
      viewBox="0 0 100 100"
      {...other}
      aria-hidden="true">
      <use style={{ width: "100%", height: "100%" }} xlinkHref={icon}></use>
    </svg>
  );
}

export default IconFont;
